package com.mayikt.auth.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* (MeiteAccessTokenRecord) 实体类
*
* @author zhangxun
* @since 2020-05-31
*/
@Data
@TableName(value = "meite_access_token_record")
public class AccessTokenRecord implements Serializable {
    private static final long serialVersionUID=1L;
    /*** */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /*** 商户id*/
    @TableField("app_id")
    private String appId;

    /*** 申请的token*/
    @TableField("access_token")
    private String accessToken;

    /*** 是否可用*/
    @TableField("available")
    private Integer available;

    /*** 创建时间*/
    @TableField("create_time")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}